<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<title>hello world</title>
<head>
    <script type="application/javascript">
        function alertMe(str){
            alert(str);
        }
    </script>

    <style type="text/css">
        .typename{
            width: 200px;
            height: 80px;
            background-color: cadetblue;
        }
        body{
            background-color: darkgrey;
        }
    </style>
</head>
<body>
<h1>hello world</h1>
<input type="text" id="name" class="typename" onclick="alertMe(this.value)">
</body>
<html>